package com.situ.spring.controller;

import com.situ.spring.service.ICourseService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

//<bean name="studentController" class="com.situ.spirng.controller.StudentController">
@Controller("courseController")
public class CourseController {
    //private ICourseService courseService = new CourseServiceImpl();
    @Resource(name = "courseService")
    private ICourseService courseService;

    public void selectAll() {
        System.out.println("CourseController.selectAll");
        courseService.selectAll();
    }
}